package com.phiture.erp.produce.core.pojo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 工艺路线 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpProduceRoutingRespVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2983")
    @ExcelProperty("ID")
    private Integer id;

    @Schema(description = "工艺路线名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @ExcelProperty("工艺路线名称")
    private String routingName;

    @Schema(description = "物料内码", requiredMode = Schema.RequiredMode.REQUIRED, example = "17869")
    @ExcelProperty("物料内码")
    private Long materialId;

    @Schema(description = "物料编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "17869")
    @ExcelProperty("物料编码")
    private String materialNumber;

    @Schema(description = "物料名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "17869")
    @ExcelProperty("物料编码")
    private String materialName;

    @Schema(description = "描述", example = "你说的对")
    @ExcelProperty("描述")
    private String description;

    @Schema(description = "状态", example = "2")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("system_status_ok_ng") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer status;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "总时间")
    @ExcelProperty("总时间")
    private Integer totalLeadTime;

    @Schema(description = "总工价", example = "7116")
    @ExcelProperty("总工价")
    private BigDecimal totalProcessPrice;

}